﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Futaba.SBus.Configuration
{
	/// <summary>
	/// The configuration of a radio controlled model
	/// </summary>
	public class ModelConfiguration : NotifyPropertyChangedBase
	{

		private string _internalDisplayName;
		/// <summary>
		/// The name of the model
		/// </summary>
		public string DisplayName
		{
			get { return _internalDisplayName; }
			set
			{
				if (Equals(_internalDisplayName, value))
					return;
				_internalDisplayName = value;
				RaisePropertyChanged(); //RaisePropertyChanged("DisplayName");
			}
		}

		/// <summary>
		/// The <see cref="Futaba.SBus.Channels.Channel">channel</see>-assignment of a specific model
		/// </summary>
		public Channels.Channel[] Channels { get; set; }

		/// <summary>
		/// The telemetry <see cref="Telemetry.Slot">slots</see> configured for this model
		/// </summary>
		public Telemetry.Slot[] Slots { get; set; }

	}
}
